2ce7506a0aed39fdaa00f755a18ccf5ad5092d58,src-modules/org/opencms/workplace/tools/jobs/CmsJobsAdminTool.java,CmsJobsAdminTool,executeListSingleActions,#,272
Before Change
if (job.isActive()) {
job.setActive(false);
} else {
job.setActive(true);
}
OpenCms.getScheduleManager().scheduleJob(getCms(), job);
} catch (CmsException e) {
After Change
// should never happen
throw new RuntimeException(e);
}
} else if (getParamListAction().equals(LIST_ACTION_COPY)) {
// copy a job from the list
String jobId = getSelectedItem().getId();
CmsScheduledJobInfo job = (CmsScheduledJobInfo)OpenCms.getScheduleManager().getJob(jobId).clone();
job.setActive(true);
// copy action has to be implemented!!
int warn = 0;
} else if (getParamListAction().equals(LIST_ACTION_ACTIVATE)) {
// activate a job from the list
String jobId = getSelectedItem().getId();
CmsScheduledJobInfo job = (CmsScheduledJobInfo)OpenCms.getScheduleManager().getJob(jobId).clone();
job.setActive(true);
try {
OpenCms.getScheduleManager().scheduleJob(getCms(), job);
refreshList();
} catch (CmsSchedulerException e) {
// TODO: exception handling
} catch (CmsRoleViolationException e) {